package cn.wp.ewallet.common.service.impl;

import cn.wp.common.core.util.BeanUtil;
import cn.wp.ewallet.common.dao.PubLanguageInfoDao;
import cn.wp.ewallet.common.model.dto.PubLanguageInfoDto;
import cn.wp.ewallet.common.model.entity.PubLanguageInfoDo;
import cn.wp.ewallet.common.service.PubLanguageInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 语言信息服务层-业务逻辑层实现
 * Created by ganjie on 2019/10/23
 */
@Service
public class PubLanguageInfoServiceImpl implements PubLanguageInfoService {

    @Autowired
    private PubLanguageInfoDao pubLanguageInfoDao;

    @Override
    public List<PubLanguageInfoDto> getLanguageInfoList() {
        List<PubLanguageInfoDo> pubLanguageInfoDos = pubLanguageInfoDao.selectLanguageInfoList();
        return BeanUtil.listCopyProperties(pubLanguageInfoDos ,PubLanguageInfoDto.class);
    }
}

